/*
 * XML Type:  GeneralOpenOrder
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.GeneralOpenOrder
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML GeneralOpenOrder(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class GeneralOpenOrderImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.GeneralOpenOrder
{
    
    public GeneralOpenOrderImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName FITID$0 = 
        new javax.xml.namespace.QName("", "FITID");
    private static final javax.xml.namespace.QName SRVRTID$2 = 
        new javax.xml.namespace.QName("", "SRVRTID");
    private static final javax.xml.namespace.QName SECID$4 = 
        new javax.xml.namespace.QName("", "SECID");
    private static final javax.xml.namespace.QName DTPLACED$6 = 
        new javax.xml.namespace.QName("", "DTPLACED");
    private static final javax.xml.namespace.QName UNITS$8 = 
        new javax.xml.namespace.QName("", "UNITS");
    private static final javax.xml.namespace.QName SUBACCT$10 = 
        new javax.xml.namespace.QName("", "SUBACCT");
    private static final javax.xml.namespace.QName DURATION$12 = 
        new javax.xml.namespace.QName("", "DURATION");
    private static final javax.xml.namespace.QName RESTRICTION$14 = 
        new javax.xml.namespace.QName("", "RESTRICTION");
    private static final javax.xml.namespace.QName MINUNITS$16 = 
        new javax.xml.namespace.QName("", "MINUNITS");
    private static final javax.xml.namespace.QName LIMITPRICE$18 = 
        new javax.xml.namespace.QName("", "LIMITPRICE");
    private static final javax.xml.namespace.QName STOPPRICE$20 = 
        new javax.xml.namespace.QName("", "STOPPRICE");
    private static final javax.xml.namespace.QName MEMO$22 = 
        new javax.xml.namespace.QName("", "MEMO");
    private static final javax.xml.namespace.QName CURRENCY$24 = 
        new javax.xml.namespace.QName("", "CURRENCY");
    private static final javax.xml.namespace.QName INV401KSOURCE$26 = 
        new javax.xml.namespace.QName("", "INV401KSOURCE");
    
    
    /**
     * Gets the "FITID" element
     */
    public java.lang.String getFITID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FITID$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "FITID" element
     */
    public net.ofx.types.x2003.x04.FinancialInstitutionTransactionIdType xgetFITID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.FinancialInstitutionTransactionIdType target = null;
            target = (net.ofx.types.x2003.x04.FinancialInstitutionTransactionIdType)get_store().find_element_user(FITID$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "FITID" element
     */
    public void setFITID(java.lang.String fitid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FITID$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FITID$0);
            }
            target.setStringValue(fitid);
        }
    }
    
    /**
     * Sets (as xml) the "FITID" element
     */
    public void xsetFITID(net.ofx.types.x2003.x04.FinancialInstitutionTransactionIdType fitid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.FinancialInstitutionTransactionIdType target = null;
            target = (net.ofx.types.x2003.x04.FinancialInstitutionTransactionIdType)get_store().find_element_user(FITID$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.FinancialInstitutionTransactionIdType)get_store().add_element_user(FITID$0);
            }
            target.set(fitid);
        }
    }
    
    /**
     * Gets the "SRVRTID" element
     */
    public java.lang.String getSRVRTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SRVRTID$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "SRVRTID" element
     */
    public net.ofx.types.x2003.x04.ServerIdType xgetSRVRTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ServerIdType target = null;
            target = (net.ofx.types.x2003.x04.ServerIdType)get_store().find_element_user(SRVRTID$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "SRVRTID" element
     */
    public boolean isSetSRVRTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SRVRTID$2) != 0;
        }
    }
    
    /**
     * Sets the "SRVRTID" element
     */
    public void setSRVRTID(java.lang.String srvrtid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SRVRTID$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SRVRTID$2);
            }
            target.setStringValue(srvrtid);
        }
    }
    
    /**
     * Sets (as xml) the "SRVRTID" element
     */
    public void xsetSRVRTID(net.ofx.types.x2003.x04.ServerIdType srvrtid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ServerIdType target = null;
            target = (net.ofx.types.x2003.x04.ServerIdType)get_store().find_element_user(SRVRTID$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.ServerIdType)get_store().add_element_user(SRVRTID$2);
            }
            target.set(srvrtid);
        }
    }
    
    /**
     * Unsets the "SRVRTID" element
     */
    public void unsetSRVRTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SRVRTID$2, 0);
        }
    }
    
    /**
     * Gets the "SECID" element
     */
    public net.ofx.types.x2003.x04.SecurityId getSECID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SecurityId target = null;
            target = (net.ofx.types.x2003.x04.SecurityId)get_store().find_element_user(SECID$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "SECID" element
     */
    public void setSECID(net.ofx.types.x2003.x04.SecurityId secid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SecurityId target = null;
            target = (net.ofx.types.x2003.x04.SecurityId)get_store().find_element_user(SECID$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.SecurityId)get_store().add_element_user(SECID$4);
            }
            target.set(secid);
        }
    }
    
    /**
     * Appends and returns a new empty "SECID" element
     */
    public net.ofx.types.x2003.x04.SecurityId addNewSECID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SecurityId target = null;
            target = (net.ofx.types.x2003.x04.SecurityId)get_store().add_element_user(SECID$4);
            return target;
        }
    }
    
    /**
     * Gets the "DTPLACED" element
     */
    public java.lang.String getDTPLACED()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTPLACED$6, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DTPLACED" element
     */
    public net.ofx.types.x2003.x04.DateTimeType xgetDTPLACED()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTPLACED$6, 0);
            return target;
        }
    }
    
    /**
     * Sets the "DTPLACED" element
     */
    public void setDTPLACED(java.lang.String dtplaced)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTPLACED$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DTPLACED$6);
            }
            target.setStringValue(dtplaced);
        }
    }
    
    /**
     * Sets (as xml) the "DTPLACED" element
     */
    public void xsetDTPLACED(net.ofx.types.x2003.x04.DateTimeType dtplaced)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTPLACED$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DateTimeType)get_store().add_element_user(DTPLACED$6);
            }
            target.set(dtplaced);
        }
    }
    
    /**
     * Gets the "UNITS" element
     */
    public java.lang.String getUNITS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UNITS$8, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "UNITS" element
     */
    public net.ofx.types.x2003.x04.QuantityType xgetUNITS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.QuantityType target = null;
            target = (net.ofx.types.x2003.x04.QuantityType)get_store().find_element_user(UNITS$8, 0);
            return target;
        }
    }
    
    /**
     * Sets the "UNITS" element
     */
    public void setUNITS(java.lang.String units)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UNITS$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(UNITS$8);
            }
            target.setStringValue(units);
        }
    }
    
    /**
     * Sets (as xml) the "UNITS" element
     */
    public void xsetUNITS(net.ofx.types.x2003.x04.QuantityType units)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.QuantityType target = null;
            target = (net.ofx.types.x2003.x04.QuantityType)get_store().find_element_user(UNITS$8, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.QuantityType)get_store().add_element_user(UNITS$8);
            }
            target.set(units);
        }
    }
    
    /**
     * Gets the "SUBACCT" element
     */
    public net.ofx.types.x2003.x04.SubAccountEnum.Enum getSUBACCT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SUBACCT$10, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.SubAccountEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "SUBACCT" element
     */
    public net.ofx.types.x2003.x04.SubAccountEnum xgetSUBACCT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SubAccountEnum target = null;
            target = (net.ofx.types.x2003.x04.SubAccountEnum)get_store().find_element_user(SUBACCT$10, 0);
            return target;
        }
    }
    
    /**
     * Sets the "SUBACCT" element
     */
    public void setSUBACCT(net.ofx.types.x2003.x04.SubAccountEnum.Enum subacct)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SUBACCT$10, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SUBACCT$10);
            }
            target.setEnumValue(subacct);
        }
    }
    
    /**
     * Sets (as xml) the "SUBACCT" element
     */
    public void xsetSUBACCT(net.ofx.types.x2003.x04.SubAccountEnum subacct)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SubAccountEnum target = null;
            target = (net.ofx.types.x2003.x04.SubAccountEnum)get_store().find_element_user(SUBACCT$10, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.SubAccountEnum)get_store().add_element_user(SUBACCT$10);
            }
            target.set(subacct);
        }
    }
    
    /**
     * Gets the "DURATION" element
     */
    public net.ofx.types.x2003.x04.DurationEnum.Enum getDURATION()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DURATION$12, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.DurationEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "DURATION" element
     */
    public net.ofx.types.x2003.x04.DurationEnum xgetDURATION()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DurationEnum target = null;
            target = (net.ofx.types.x2003.x04.DurationEnum)get_store().find_element_user(DURATION$12, 0);
            return target;
        }
    }
    
    /**
     * Sets the "DURATION" element
     */
    public void setDURATION(net.ofx.types.x2003.x04.DurationEnum.Enum duration)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DURATION$12, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DURATION$12);
            }
            target.setEnumValue(duration);
        }
    }
    
    /**
     * Sets (as xml) the "DURATION" element
     */
    public void xsetDURATION(net.ofx.types.x2003.x04.DurationEnum duration)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DurationEnum target = null;
            target = (net.ofx.types.x2003.x04.DurationEnum)get_store().find_element_user(DURATION$12, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DurationEnum)get_store().add_element_user(DURATION$12);
            }
            target.set(duration);
        }
    }
    
    /**
     * Gets the "RESTRICTION" element
     */
    public net.ofx.types.x2003.x04.RestrictionEnum.Enum getRESTRICTION()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RESTRICTION$14, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.RestrictionEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "RESTRICTION" element
     */
    public net.ofx.types.x2003.x04.RestrictionEnum xgetRESTRICTION()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RestrictionEnum target = null;
            target = (net.ofx.types.x2003.x04.RestrictionEnum)get_store().find_element_user(RESTRICTION$14, 0);
            return target;
        }
    }
    
    /**
     * Sets the "RESTRICTION" element
     */
    public void setRESTRICTION(net.ofx.types.x2003.x04.RestrictionEnum.Enum restriction)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RESTRICTION$14, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(RESTRICTION$14);
            }
            target.setEnumValue(restriction);
        }
    }
    
    /**
     * Sets (as xml) the "RESTRICTION" element
     */
    public void xsetRESTRICTION(net.ofx.types.x2003.x04.RestrictionEnum restriction)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RestrictionEnum target = null;
            target = (net.ofx.types.x2003.x04.RestrictionEnum)get_store().find_element_user(RESTRICTION$14, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.RestrictionEnum)get_store().add_element_user(RESTRICTION$14);
            }
            target.set(restriction);
        }
    }
    
    /**
     * Gets the "MINUNITS" element
     */
    public java.lang.String getMINUNITS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MINUNITS$16, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "MINUNITS" element
     */
    public net.ofx.types.x2003.x04.QuantityType xgetMINUNITS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.QuantityType target = null;
            target = (net.ofx.types.x2003.x04.QuantityType)get_store().find_element_user(MINUNITS$16, 0);
            return target;
        }
    }
    
    /**
     * True if has "MINUNITS" element
     */
    public boolean isSetMINUNITS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(MINUNITS$16) != 0;
        }
    }
    
    /**
     * Sets the "MINUNITS" element
     */
    public void setMINUNITS(java.lang.String minunits)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MINUNITS$16, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MINUNITS$16);
            }
            target.setStringValue(minunits);
        }
    }
    
    /**
     * Sets (as xml) the "MINUNITS" element
     */
    public void xsetMINUNITS(net.ofx.types.x2003.x04.QuantityType minunits)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.QuantityType target = null;
            target = (net.ofx.types.x2003.x04.QuantityType)get_store().find_element_user(MINUNITS$16, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.QuantityType)get_store().add_element_user(MINUNITS$16);
            }
            target.set(minunits);
        }
    }
    
    /**
     * Unsets the "MINUNITS" element
     */
    public void unsetMINUNITS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(MINUNITS$16, 0);
        }
    }
    
    /**
     * Gets the "LIMITPRICE" element
     */
    public java.lang.String getLIMITPRICE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LIMITPRICE$18, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "LIMITPRICE" element
     */
    public net.ofx.types.x2003.x04.UnitPriceType xgetLIMITPRICE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.UnitPriceType target = null;
            target = (net.ofx.types.x2003.x04.UnitPriceType)get_store().find_element_user(LIMITPRICE$18, 0);
            return target;
        }
    }
    
    /**
     * True if has "LIMITPRICE" element
     */
    public boolean isSetLIMITPRICE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(LIMITPRICE$18) != 0;
        }
    }
    
    /**
     * Sets the "LIMITPRICE" element
     */
    public void setLIMITPRICE(java.lang.String limitprice)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LIMITPRICE$18, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LIMITPRICE$18);
            }
            target.setStringValue(limitprice);
        }
    }
    
    /**
     * Sets (as xml) the "LIMITPRICE" element
     */
    public void xsetLIMITPRICE(net.ofx.types.x2003.x04.UnitPriceType limitprice)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.UnitPriceType target = null;
            target = (net.ofx.types.x2003.x04.UnitPriceType)get_store().find_element_user(LIMITPRICE$18, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.UnitPriceType)get_store().add_element_user(LIMITPRICE$18);
            }
            target.set(limitprice);
        }
    }
    
    /**
     * Unsets the "LIMITPRICE" element
     */
    public void unsetLIMITPRICE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(LIMITPRICE$18, 0);
        }
    }
    
    /**
     * Gets the "STOPPRICE" element
     */
    public java.lang.String getSTOPPRICE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STOPPRICE$20, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "STOPPRICE" element
     */
    public net.ofx.types.x2003.x04.UnitPriceType xgetSTOPPRICE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.UnitPriceType target = null;
            target = (net.ofx.types.x2003.x04.UnitPriceType)get_store().find_element_user(STOPPRICE$20, 0);
            return target;
        }
    }
    
    /**
     * True if has "STOPPRICE" element
     */
    public boolean isSetSTOPPRICE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(STOPPRICE$20) != 0;
        }
    }
    
    /**
     * Sets the "STOPPRICE" element
     */
    public void setSTOPPRICE(java.lang.String stopprice)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STOPPRICE$20, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STOPPRICE$20);
            }
            target.setStringValue(stopprice);
        }
    }
    
    /**
     * Sets (as xml) the "STOPPRICE" element
     */
    public void xsetSTOPPRICE(net.ofx.types.x2003.x04.UnitPriceType stopprice)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.UnitPriceType target = null;
            target = (net.ofx.types.x2003.x04.UnitPriceType)get_store().find_element_user(STOPPRICE$20, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.UnitPriceType)get_store().add_element_user(STOPPRICE$20);
            }
            target.set(stopprice);
        }
    }
    
    /**
     * Unsets the "STOPPRICE" element
     */
    public void unsetSTOPPRICE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(STOPPRICE$20, 0);
        }
    }
    
    /**
     * Gets the "MEMO" element
     */
    public java.lang.String getMEMO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MEMO$22, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "MEMO" element
     */
    public net.ofx.types.x2003.x04.MessageType xgetMEMO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.MessageType target = null;
            target = (net.ofx.types.x2003.x04.MessageType)get_store().find_element_user(MEMO$22, 0);
            return target;
        }
    }
    
    /**
     * True if has "MEMO" element
     */
    public boolean isSetMEMO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(MEMO$22) != 0;
        }
    }
    
    /**
     * Sets the "MEMO" element
     */
    public void setMEMO(java.lang.String memo)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MEMO$22, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MEMO$22);
            }
            target.setStringValue(memo);
        }
    }
    
    /**
     * Sets (as xml) the "MEMO" element
     */
    public void xsetMEMO(net.ofx.types.x2003.x04.MessageType memo)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.MessageType target = null;
            target = (net.ofx.types.x2003.x04.MessageType)get_store().find_element_user(MEMO$22, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.MessageType)get_store().add_element_user(MEMO$22);
            }
            target.set(memo);
        }
    }
    
    /**
     * Unsets the "MEMO" element
     */
    public void unsetMEMO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(MEMO$22, 0);
        }
    }
    
    /**
     * Gets the "CURRENCY" element
     */
    public net.ofx.types.x2003.x04.Currency getCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Currency target = null;
            target = (net.ofx.types.x2003.x04.Currency)get_store().find_element_user(CURRENCY$24, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "CURRENCY" element
     */
    public boolean isSetCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CURRENCY$24) != 0;
        }
    }
    
    /**
     * Sets the "CURRENCY" element
     */
    public void setCURRENCY(net.ofx.types.x2003.x04.Currency currency)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Currency target = null;
            target = (net.ofx.types.x2003.x04.Currency)get_store().find_element_user(CURRENCY$24, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.Currency)get_store().add_element_user(CURRENCY$24);
            }
            target.set(currency);
        }
    }
    
    /**
     * Appends and returns a new empty "CURRENCY" element
     */
    public net.ofx.types.x2003.x04.Currency addNewCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Currency target = null;
            target = (net.ofx.types.x2003.x04.Currency)get_store().add_element_user(CURRENCY$24);
            return target;
        }
    }
    
    /**
     * Unsets the "CURRENCY" element
     */
    public void unsetCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CURRENCY$24, 0);
        }
    }
    
    /**
     * Gets the "INV401KSOURCE" element
     */
    public net.ofx.types.x2003.x04.Investment401KSourceEnum.Enum getINV401KSOURCE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INV401KSOURCE$26, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.Investment401KSourceEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "INV401KSOURCE" element
     */
    public net.ofx.types.x2003.x04.Investment401KSourceEnum xgetINV401KSOURCE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Investment401KSourceEnum target = null;
            target = (net.ofx.types.x2003.x04.Investment401KSourceEnum)get_store().find_element_user(INV401KSOURCE$26, 0);
            return target;
        }
    }
    
    /**
     * True if has "INV401KSOURCE" element
     */
    public boolean isSetINV401KSOURCE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(INV401KSOURCE$26) != 0;
        }
    }
    
    /**
     * Sets the "INV401KSOURCE" element
     */
    public void setINV401KSOURCE(net.ofx.types.x2003.x04.Investment401KSourceEnum.Enum inv401KSOURCE)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INV401KSOURCE$26, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(INV401KSOURCE$26);
            }
            target.setEnumValue(inv401KSOURCE);
        }
    }
    
    /**
     * Sets (as xml) the "INV401KSOURCE" element
     */
    public void xsetINV401KSOURCE(net.ofx.types.x2003.x04.Investment401KSourceEnum inv401KSOURCE)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Investment401KSourceEnum target = null;
            target = (net.ofx.types.x2003.x04.Investment401KSourceEnum)get_store().find_element_user(INV401KSOURCE$26, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.Investment401KSourceEnum)get_store().add_element_user(INV401KSOURCE$26);
            }
            target.set(inv401KSOURCE);
        }
    }
    
    /**
     * Unsets the "INV401KSOURCE" element
     */
    public void unsetINV401KSOURCE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(INV401KSOURCE$26, 0);
        }
    }
}
